package com.wangzhixuan.model.vo;

import java.io.Serializable;

import com.wangzhixuan.commons.constant.ApiCode;
import com.wangzhixuan.commons.scan.MyException;
import com.wangzhixuan.commons.utils.StringUtils;

public class SignVo implements Serializable{
	
	/**
	 * 
	 */
	private static final long serialVersionUID = 81871376176614047L;
	private Integer userId;
	private Integer workId;
	private String signLongitude;
	private String signLatitude;
	private String signName;
	
	public void checekParam() throws MyException{
		if(this.userId==null){
			 throw new MyException(ApiCode.CODE_501, "请重新登录");
		}
		if(this.workId==null){
			 throw new MyException(ApiCode.CODE_501, "网络异常，请稍后重试");
		}
		if (StringUtils.isBlank(signLongitude)) {
			throw new MyException(ApiCode.CODE_501, "网络异常，请稍后重试");
        }
		if (StringUtils.isBlank(signLatitude)) {
			throw new MyException(ApiCode.CODE_501, "网络异常，请稍后重试");
        }
		if (StringUtils.isBlank(signName)) {
			throw new MyException(ApiCode.CODE_501, "网络异常，请稍后重试");
        }
	}
	public Integer getUserId() {
		return userId;
	}
	public void setUserId(Integer userId) {
		this.userId = userId;
	}
	public Integer getWorkId() {
		return workId;
	}
	public void setWorkId(Integer workId) {
		this.workId = workId;
	}
	public String getSignLongitude() {
		return signLongitude;
	}
	public void setSignLongitude(String signLongitude) {
		this.signLongitude = signLongitude;
	}
	public String getSignLatitude() {
		return signLatitude;
	}
	public void setSignLatitude(String signLatitude) {
		this.signLatitude = signLatitude;
	}
	public String getSignName() {
		return signName;
	}
	public void setSignName(String signName) {
		this.signName = signName;
	}
	
}
